/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.mine.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 采集孔信息Entity
 * @author developer
 * @version 2019-04-21
 */
public class Hole extends DataEntity<Hole> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 采集孔名称
	private String roadname;		// 巷道名称
	private Double length;		// 采集孔长度
	private Integer angle;		// 角度
	private Double position;		// 位置
	private String direction;		// 方向
	private String roadwayId;		// 巷道编号
	private Double displacement;		// 相对高度或者左边墙壁位移量
	
	public Hole() {
		super();
	}

	public Hole(String id){
		super(id);
	}

	@Length(min=0, max=255, message="采集孔名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="巷道名称长度必须介于 0 和 255 之间")
	public String getRoadname() {
		return roadname;
	}

	public void setRoadname(String roadname) {
		this.roadname = roadname;
	}
	
	public Double getLength() {
		return length;
	}

	public void setLength(Double length) {
		this.length = length;
	}
	
	public Integer getAngle() {
		return angle;
	}

	public void setAngle(Integer angle) {
		this.angle = angle;
	}
	
	public Double getPosition() {
		return position;
	}

	public void setPosition(Double position) {
		this.position = position;
	}
	
	@Length(min=0, max=255, message="方向长度必须介于 0 和 255 之间")
	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}
	
	@Length(min=1, max=64, message="巷道编号长度必须介于 1 和 64 之间")
	public String getRoadwayId() {
		return roadwayId;
	}

	public void setRoadwayId(String roadwayId) {
		this.roadwayId = roadwayId;
	}
	
	public Double getDisplacement() {
		return displacement;
	}

	public void setDisplacement(Double displacement) {
		this.displacement = displacement;
	}
	
}